www.gusucode.com > CxImage v6.0 图形类库最新版源码程序 > CxImage v6.0 图形类库最新版源码程序\code\cximage600_full\demo\DlgOpacity.cpp

    //Download by http://www.NewXing.com
// DlgOpacity.cpp : implementation file
//

#include "stdafx.h"
#include "demo.h"
#include "DlgOpacity.h"

#ifdef _DEBUG
#define new DEBUG_NEW
#undef THIS_FILE
static char THIS_FILE[] = __FILE__;
#endif

/////////////////////////////////////////////////////////////////////////////
// DlgOpacity dialog


DlgOpacity::DlgOpacity(CWnd* pParent /*=NULL*/)
	: CDialog(DlgOpacity::IDD, pParent)
{
	//{{AFX_DATA_INIT(DlgOpacity)
	m_level = 0;
	//}}AFX_DATA_INIT
}


void DlgOpacity::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	//{{AFX_DATA_MAP(DlgOpacity)
	DDX_Control(pDX, IDOK, m_ok);
	DDX_Control(pDX, IDCANCEL, m_canc);
	DDX_Text(pDX, IDC_EDIT1, m_level);
	//}}AFX_DATA_MAP
}


BEGIN_MESSAGE_MAP(DlgOpacity, CDialog)
	//{{AFX_MSG_MAP(DlgOpacity)
	//}}AFX_MSG_MAP
END_MESSAGE_MAP()

/////////////////////////////////////////////////////////////////////////////
// DlgOpacity message handlers

BOOL DlgOpacity::OnInitDialog() 
{
	CDialog::OnInitDialog();
	
	m_ok.SetIcon(IDI_G,BS_LEFT);
	m_canc.SetIcon(IDI_R,BS_LEFT);
	
	return TRUE;  // return TRUE unless you set the focus to a control
	              // EXCEPTION: OCX Property Pages should return FALSE
}